All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.realm.HostImpl

java.lang.Object
   |
   +----sun.security.acl.PrincipalImpl
           |
           +----sun.server.realm.HostImpl

public class HostImpl
extends PrincipalImpl
implements Host
This is an implementation of Host interface


Constructor Index

 o HostImpl(String)

Method Index

 o equals(Host)
Tests the equality of this principal to another Host principal
 o getDomainName()
Guess the domain name assuming the address is in non-numerical proper form
 o isSameDomain(Host)
Tests for same domain between two hosts

Constructors

 o HostImpl
 public HostImpl(String name)

Methods

 o getDomainName
 public String getDomainName()
Guess the domain name assuming the address is in non-numerical proper form

Returns:
the domain name
 o equals
 public boolean equals(Host otherHost)
Tests the equality of this principal to another Host principal

Parameters:
otherHost - Host principal
Returns:
true if they are equal
 o isSameDomain
 public boolean isSameDomain(Host otherHost)
Tests for same domain between two hosts

Parameters:
otherHost - Host principal
Returns:
true if they are from same domain

All Packages  Class Hierarchy  This Package  Previous  Next  Index